package kokonut.shop.cart;

import kokonut.shop.product.TShirt;

public class SelectedProduct{

	private TShirt product;
	private int amount;

	public SelectedProduct(TShirt product, int amount) {
		this.product = product;
		this.amount = amount;
	}

	public void setAmount(int amount)
	{
		this.amount = amount;
	}

	public TShirt getProduct(){
		return this.product;
	}

	public int getAmount(){
		return this.amount;
	}

	public float getSubtotal()
	{
		return this.amount * this.product.getPrice();
	}
}